<?php 
class menu extends CWidget
{
	public $_active = '';
	public function init()
	{
		$dir = dirname(__FILE__).'/assets';
		$assets = Yii::app()->getAssetManager()->publish($dir);
		$cs = Yii::app()->getClientScript();
		$cs->registerScriptFile("{$assets}/ddlevelsmenu.js");
		$cs->registerCssFile(Yii::app()->theme->baseUrl."/css/base.css");
	}
	public function run()
	{
		$this->render('default', array('active'=>$this->_active));
	}
}
?>